<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>完成动画并一直重复</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .a{
            width: 150px;
            height: 100px;
            background-color: blue;
            animation: move 5s linear infinite;
        }
        @keyframes move{
            0%{
                transform: translate(0px);
            }
            25%{
                transform: translate(500px,0);
            }
            50%{
                transform: translate(500px,500px);
            }
            75%{
                transform: translate(0,500px);
            }
            100%{
                transform: translate(0);
            }
        }
    </style>
</head>
<body>
    <div class="a"></div>
</body>
</html>